<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
	<div class="main">
		<div class="wrapper bg">
			<div class="type">
				<div class="pasition">当前位置：<a href="/">首页</a><span> &gt; </span><?php echo catpos($catid);?></div>
				<div class="item"><span>Android版本：</span>
					<?php $n=1;if(is_array(filters('version',$modelid))) foreach(filters('version',$modelid) AS $r) { ?>
						<?php echo $r['menu'];?>
					<?php $n++;}unset($n); ?>
				</div>
				<div class="item"><span>UI类型：</span>
					<?php $n=1;if(is_array(filters('ui',$modelid))) foreach(filters('ui',$modelid) AS $r) { ?>
						<?php echo $r['menu'];?>
					<?php $n++;}unset($n); ?>
				</div>
			</div>
			<div class="list_box">
			<?php $sql = structure_filters_sql($modelid,$cityid)?>
			<?php $cachetime = getinfocache('info_cachetime')?>
			<?php $urlrule = makeurlrule()?>
			<?php $sql = $sql." AND catid='$catid'"?>
			<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=058f4edf53fdf9afb8a7244e6b062dfa&action=lists&catid=%24catid&num=15&where=%24sql&order=id+DESC&page=%24page&cache=%24cachetime&urlrule=%24urlrule&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 15;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'where'=>$sql,'order'=>'id DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'where'=>$sql,'order'=>'id DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<?php $num++?>
				<div class="item<?php if($num%2!=0) { ?> item_bg<?php } ?>">
					<div class="pic"><a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r[thumb],100,145);?>" width="100" height="145" alt="<?php echo $r['title'];?>"/></a></div>
					<div class="desc">
						<div class="tit"><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></div>
						<div class="con"><?php echo $r['description'];?></div>
						<div class="tag">
							发布日期：<?php echo date('Y-m-d',$r[inputtime]);?>&nbsp;&nbsp;Android版本：<?php echo $r['version'];?> UI&nbsp;&nbsp;类型：MIUI&nbsp;&nbsp;大小：<?php echo $r['filesize'];?>MB 
						</div>
					</div>
					<div class="down">
						<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=99cce1925d4dac0bfbb66e0ab1737153&sql=SELECT+s.id%2Cdownfiles%2Ctitle%2Cinputtime+FROM+romzj_rom+s%2Cromzj_rom_data+d+WHERE+s.id+%3D+d.id++AND+catid+%3D+%24catid+AND+s.id%3D%24r%5Bid%5D&return=data\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("SELECT s.id,downfiles,title,inputtime FROM romzj_rom s,romzj_rom_data d WHERE s.id = d.id  AND catid = $catid AND s.id=$r[id] LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
						<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
						<?php $files = String2Array($r['downfiles'])?>  
						<?php $file1 = $files[0]['fileurl']?>   
						<?php $pc_auth_key = md5(pc_base::load_config('system','auth_key').$_SERVER['HTTP_USER_AGENT']);?>
						<?php $a_k =urlencode(sys_auth("i=$r[id]&d=1&s=&t=".SYS_TIME."&ip=".ip()."&m=1&f=$file1&modelid=".$modelid, 'ENCODE', $pc_auth_key));?>
						<a href="<?php echo $file1;?>"><img src="<?php echo IMG_PATH;?>down.gif"/></a>
						<?php $n++;}unset($n); ?>  
                        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
						<!--<p>评论：<b>90000</b> 条</p>-->
						<p>下载：<b id="views<?php echo $r['id'];?>"><script language="JavaScript" src="<?php echo APP_PATH;?>api.php?op=views&id=<?php echo $r['id'];?>&modelid=<?php echo $modelid;?>"></script></b> 次</p>
					</div>
				</div>
				<?php $n++;}unset($n); ?>	
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
				<div class="page">
					<?php echo $pages;?>
				</div>
			</div>
		</div>
	</div>
<?php include template("content","footer"); ?>
</body>
</html>
